package com.wn.icloud.provider.uac.controller.app;

import com.wn.icloud.provider.uac.service.app.AppUserBiz;
import com.wn.icloud.provider.uac.vo.app.AppUserDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/app/user")
public class AppUserController {

    @Autowired
    private AppUserBiz userBiz;

    //根据账号获取个人信息
    @RequestMapping(value = "/getUserDetailByCurrentUserName", method = RequestMethod.GET)
    @ResponseBody
    public AppUserDetails getUserDetailByCurrentUserName() {
        return userBiz.getUserDetailByCurrentUserName();
    }
}
